#ifndef  __ENCODER_H__
#define  __ENCODER_H__

struct _encoder
{
 unsigned char enable;
 short 		   count;
 short 		   top;
 short 		   bottom;
 unsigned char step;
};


typedef struct _encoder encoder;

void Init_encoder(void);
void set_encoder(encoder *);
void clr_encoder(void);
unsigned get_default_count(void);

#endif
